package com.green.business.service;

import com.green.business.domain.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.green.business.vo.GoodsVo;
import com.green.system.common.DataGridView;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * @Author: Green
 * @Date: 2021/11/15/17:22
 * @Description: 
 */


public interface GoodsService extends IService<Goods>{


    DataGridView queryAllGoods(GoodsVo goodsVo);

    Goods updateGoods(Goods goods);

    Goods saveGoods(Goods goods);

    DataGridView getAllAvailableGoods();

    Integer selectMaxGoodsId();

    Boolean selectWhetherAvailable(Integer id);

    void downByIds(List<Integer> idsList, String name);

    void downById(Integer id, String name);

    boolean warning();

}
